package NewTmas.Listeners;

import NewTmas.FramesandPanels.LogFileFrame;

import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: abhatnag
 * Date: 7/28/11
 * Time: 10:01 AM
 * To change this template use File | Settings | File Templates.
 */
public class LogFileActionListener implements ActionListener {
    String job;
    String task;
    Date date;

    JDesktopPane dtp;
    public LogFileActionListener(String job, String task, Date date,JDesktopPane dtp) {
        this.job = job;
        this.task = task;
        this.date = date;

        this.dtp = dtp;
    }




    public void actionPerformed(ActionEvent e) {
        new LogFileFrame(job, task,date,dtp) ;
    }
}
